<div>
	<h3>Last 5 Books Requested</h3>
		<table>
			<thead>
				<tr>
					<th>Teacher</th>
                    <th>Book</th>
                    <th>Description</th>
                    <th>Date Requested</th>
                </tr>
            </thead>
            <tbody>
            	<g:each in="${requestList}" var="c" status="i">
                	<tr class="${(i % 2) == 0 ? 'even' : 'odd'}">
                    	
                    	
                    	<td>
                    		<a href = "${createLink(controller:'user', action:'show', id:c.user.id ) }">${c.user }</a>
                    	</td>
                    	
                    	<td>
                    		<a href = "${createLink(controller:'books', action:'show', id:c.book.id ) }">${c.book }</a>
                    	</td>
                    	
                                    	
                    	<td>${c.description}</td><td><g:formatDate date="${c.dateRequested}" type="date" style="MEDIUM"/></td>
                    </tr>
               	</g:each>
         	</tbody>
     	</table>
</div>